//===================================================================
// 西交投.NET产品框架 版权所有
//===================================================================
using System;
using System.ComponentModel.DataAnnotations;
using XCI.Core;

namespace XCI.Sys.Filter
{
    /// <summary>
    /// 系统角色过滤条件
    /// </summary>
    public class SysRoleFilter : BasePageFilter
    {
        /// <summary>
        /// 默认过滤对象
        /// </summary>
        public static SysRoleFilter Default { get; } = new SysRoleFilter { };

        /// <summary>
        /// 角色名称/编码关键字
        /// </summary>
        [Display(Name = "关键字")]
        public string Key { get; set; }

        /// <summary>
        /// 机构主键
        /// </summary>
        [Display(Name = "机构主键")]
        public string DeptId { get; set; }

        /// <summary>
        /// 状态 [true-启用, false-禁用]
        /// </summary>
        [Display(Name = "状态")]
        public bool? Status { get; set; }

        /// <summary>
        /// 是否启用机构数据权限过滤 [true-启用, false-禁用]
        /// </summary>
        [Display(Name = "是否启用机构数据权限过滤")]
        public bool? EnableDeptScope { get; set; }
    }
}
